/**
 * Implémente les workflows.
 */
package ch.ifage.business.service;

import javax.annotation.PostConstruct;
import javax.inject.Inject;

import org.slf4j.Logger;

import ch.ifage.business.dom.Workflows;
import ch.ifage.business.service.mock.AnalyseFluxData;

/**
 * @author Christian
 *
 */

//@Mock
public class WorkflowsServiceImplMock implements WorkflowsService {

	/**
	 * serial id.
	 */
	private static final long serialVersionUID = -5981460430924624414L;

	/**
	 * les Workflows.
	 */
	private Workflows wfs;
	
	/** The logger for the class. */
	//@Inject
	//private transient Logger logger;
	
	/** Some post-construtor initializations. */
	@PostConstruct
	void init() {
		//logger.info("Use the mock implementation");
		AnalyseFluxData data = new AnalyseFluxData();
		setWfsService(data.getList());
	}
	 	
	/**
	 * Constructeur vide.
	 */
	public WorkflowsServiceImplMock() {
		init();
	}

	/* (non-Javadoc)
	 * @see ch.ifage.business.service.WorkflowService#getWfs()
	 */
	@Override
	public Workflows getWfsService() {
		return wfs;
	}

	/* (non-Javadoc)
	 * @see ch.ifage.business.service.WorkflowService#setWfs(ch.ifage.business.dom.Workflows)
	 */
	@Override
	public void setWfsService(final Workflows wfs) {
		this.wfs = wfs;
	}
	
}
